/*
 * @description:
 * @version:
 * @Author: 王治飞
 * @Date: 2023-08-22 14:58:23
 * @LastEditors: 王治飞
 * @LastEditTime: 2023-08-22 16:05:30
 */
import PropTypes from 'prop-types'
import React, { memo } from 'react'
import { LongforWarp } from './style'
import LongItem from '../longfor-item'
import ScorllView from '../scorllView'

const Longfor = memo(props => {
  const { list = [] } = props
  return (
    <LongforWarp>
      <ScorllView>
        {list.map(item => {
          return <LongItem item={item} key={item.city}></LongItem>
        })}
      </ScorllView>
    </LongforWarp>
  )
})

Longfor.propTypes = {
  list: PropTypes.array
}

export default Longfor
